

(function ($) {
  'use strict';



  $(document).on('ready', function () {
      document.getElementById("password").classList.add("input-password");
      document.getElementById("toggle-password").classList.remove("d-none");
      const passwordInput = document.getElementById("password");
      const togglePasswordButton = document.getElementById("toggle-password");
      togglePasswordButton.addEventListener("click", togglePassword);
      function togglePassword() {
          if (passwordInput.type === "password") {
              passwordInput.type = "text";
              togglePasswordButton.setAttribute("aria-label", "Hide password.");
          } else {
              passwordInput.type = "password";
              togglePasswordButton.setAttribute("aria-label", "Show password as plain text. " + "Warning: this will display your password on the screen.");
          }
      }




  });





})(jQuery);